package com.itheima.day06JDBC连接池JDBCTemplate.Demo1.C3P0;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

public class Demo1c3p0 {
    public static void main(String[] args) throws SQLException {
        //创建数据库连接对象
        DataSource ds = new ComboPooledDataSource();
        //获取连接.数据库驱动jar包一定导入add项目中
        //打印日志信息
        Connection conn = ds.getConnection();
        System.out.println(conn);

    }
}
